package com.kcwl.carrier.infrastructure.exceptions;

import com.kcwl.carrier.infrastructure.enums.CarrierUseErrorCodeEnum;
import com.kcwl.ddd.infrastructure.exception.BaseException;

/**
 * 用户服务异常
 *
 * @author kcwl
 */
public  class CarrierUserException extends BaseException {

    private static final long serialVersionUID = -5915536141130544169L;

    private static final String PRE_CODE = "02";

    public CarrierUserException(CarrierUseErrorCodeEnum userCodeEnum) {
        super(PRE_CODE+userCodeEnum.getCode(), userCodeEnum.getMsg());
    }

    public CarrierUserException(CarrierUseErrorCodeEnum userCodeEnum, String msg) {
        super(PRE_CODE+userCodeEnum.getCode(), msg);
    }

}
